package com.didispace.service;

import com.netflix.hystrix.HystrixEventType;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by Acro.Chao on 2017/1/19.
 */

@Service
public class StoreIntegration {

    @HystrixCommand(fallbackMethod = "defaultStores")
    public String getStores(){

        return "ok";
    }

    public String defaultStores(){
        /* something useful */
        return "something wrong";
    }
}
